home *** CD-ROM | disk | FTP | other *** search
/ ftp.cs.arizona.edu / ftp.cs.arizona.edu.tar / ftp.cs.arizona.edu / icon / newsgrp / group95b.txt / 000037_icon-group-sender _Mon Jun 5 20:39:02 1995.msg < prev    next >
Internet Message Format  |  1995-09-18  |  1KB

  1. Received: by cheltenham.cs.arizona.edu; Mon, 5 Jun 1995 16:20:47 MST
  2. To: icon-group-l@cs.arizona.edu
  3. Date: Mon, 5 Jun 1995 20:39:02 GMT
  4. From: ka@socrates.hr.att.com (Kenneth Almquist)
  5. Message-Id: <D9pw12.GDH@nntpa.cb.att.com>
  6. Organization: AT&T
  7. Sender: icon-group-request@cs.arizona.edu
  8. References: <3qr2a1$afq@deci.mks.com>
  9. Subject: Garbage collection vs files
  10. Errors-To: icon-group-errors@cs.arizona.edu
  11.  
  12. > Most lisps will properly close files during garbage collection.
  13. > Does iconx, or the code generated by iconc?
  14.  
  15. No, or at least it didn't last time I checked.  To close a file in Icon,
  16. you must call "close".
  17.  
  18. The problem with relying on garbage collection to close files is that if
  19. your program opens files frequently, it may hit the limit on the maximum
  20. number of open files between invocations of the garbage collector.  If the
  21. garbage collector is invoked by the open routine when the limit is hit,
  22. the result may be an excessive number of garbage collections.
  23.                 Kenneth Almquist
  24.